
package com.kweative.lingua.server.controllers;

import com.kweative.lingua.server.Application;
import com.kweative.lingua.server.Controller;
import com.kweative.lingua.server.annotations.MethodInfo;
import com.kweative.lingua.server.exceptions.InternalErrorException;
import com.kweative.type.Node;

/**
 *
 * @author henrik
 */
public final class InfoController extends Controller<Application> {

    @Override
    @MethodInfo(nonpublic=true)
    public String getName() {
        return "_info";
    }

    public final Node describe() throws InternalErrorException {
        return getApp().getDocumentation();
    }
}
